import { createRouter, createWebHistory } from "vue-router";
// import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "home",
      redirect:'/three',
      component: () => import("@/views/HomeView.vue"),
    },
    {
      path: "/drag",
      name: "drag",
      component: () => import("@/views/draganddrop/index.vue"),
    },
    {
      path: "/pieCharts",
      name: "piecharts",
      component: () => import("@/views/pieChart/index.vue"),
    },
    {
      path: "/countTo",
      name: "countTo",
      component: () => import("@/views/vue3countto/index.vue"),
    },
    {
      path: "/draggable",
      name: "countTo",
      component: () => import("@/views/vuedraggable/index.vue"),
    },
    {
      path: "/directive",
      name: "directive",
      component: () => import("@/views/direcives/index.vue"),
    },
    {
      path: "/three",
      name: "threeDemo",
      component: () => import("@/views/three/index.vue"),
    },
  ],
});

export default router;
